package tx.algoritmiek.week1;

public class MultiIterativeFormula implements BinomialFormula {

    public double executeFormula(double n, double k) {
        double x = 1;
        
        for(int i = 1; i <= k; i++) {
            x = x * ((n - i + 1) / i);
        }
        
        return x;
    }
}   
